<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopHotWordTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_hot_word', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('hot_type',4)->comment('热词类型（1:跳搜索、2:商家、3:h5）');
            $table->string('name',255)->comment('名称');
            $table->integer('sort')->default(1)->comment('排序');
            $table->integer('city_id')->comment('城市id');
            $table->string('content',255)->comment('内容');
            $table->integer('is_red',4)->comment('展示是否需要标红（1为标红）');
            $table->integer('status',4)->comment('状态（0:失效、1:生效）');
            $table->integer('admin_id')->default(0)->comment('操作人id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('shops_hot_words');
    }
}
